package com.example.base;

import java.io.Serializable;
import java.util.Map;

public class MessageBase implements Serializable {
	private String ToUserName;
	private String FromUserName;
	private String CreateTime;
	private String MsgType;

	public String getToUserName() {
		return ToUserName;
	}

	public void setToUserName(String toUserName) {
		ToUserName = toUserName;
	}

	public String getFromUserName() {
		return FromUserName;
	}

	public void setFromUserName(String fromUserName) {
		FromUserName = fromUserName;
	}

	public String getCreateTime() {
		return CreateTime;
	}

	public void setCreateTime(String createTime) {
		CreateTime = createTime;
	}

	public String getMsgType() {
		return MsgType;
	}

	public void setMsgType(String msgType) {
		MsgType = msgType;
	}

	public MessageBase(Map<String, String> map) {
		super();
		ToUserName = map.get("FromUserName");
		FromUserName = map.get("ToUserName");
		CreateTime = System.currentTimeMillis()+"";
	}
	
}
